package org.zxp.javacheck.breaklable;

/**
 * @program: effectiveJava
 * @description:
 * @author: X-Pacific zhang
 * @create: 2020-04-08 15:26
 **/
public class BreakLableTest {
    public static void main(String[] args){
        int j = 0;
        System.out.println(j);
        jump:
        for (int i = 0; i < 10; i++) {
            j++;
            if(i==5){
                break jump;
            }
        }
        System.out.println(j);

    }
}
